var date='2013-08-19 14:08:30',
reg=/(\d*)-(\d*)-(\d*)\s(\d*):(\d*):(\d*)/g,
format='$1/$2/$3 $4:$5:$6'
date=date.replace(reg,format);
console.log(date);
console.log(new Date(date));